package yunwo.cn.yzstation.view.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ListView;
import android.widget.TextView;

import java.util.ArrayList;
import java.util.List;

import yunwo.cn.yzstation.R;
import yunwo.cn.yzstation.adapter.Walkeradapter;
import yunwo.cn.yzstation.base.MyBaseActivity;

/**
 * Created by lao on 2017/8/30.
 */

public class WalkerActivity extends MyBaseActivity {

    private TextView mTitlename;
    private TextView mScan;
    private ListView mWalkerLV;
    private Walkeradapter mWalkeradapter;
    private List<String> mList;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initData();
            initview();
    }

    @Override
    protected String settiltile() {
        return "选择拉包工";
    }

    private void initData() {
        mList = new ArrayList<>();
        mList.add("1");mList.add("2"); mList.add("3"); mList.add("4");  mList.add("5");
    }

    private void initview() {


        mScan = (TextView) findViewById(R.id.scan);
        mWalkerLV = (ListView) findViewById(R.id.walkerLV);
        mScan.setVisibility(View.GONE);

        mWalkeradapter = new Walkeradapter(WalkerActivity.this);
        mWalkeradapter.refreshDataAndNotifyDataSetChanged(mList);
        mWalkerLV.setAdapter(mWalkeradapter);
    }

    @Override
    protected int getLayoutRsid() {
        return R.layout.activity_walker;
    }
}
